(function () {
  return {
    "type": "page",
    // "initApi": "/b/permits/init",
    "title": "信息维护",
    "body": {
      "type": "tabs",
      "mode": "line",
      "tabs": [
        {
          "title": "充值规则",
          "body": {
            "type": "form",
            "title": "充值规则",
            "initApi": "get:/b/info/read?type=1",
            "name": "充值规则",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 1
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "提现规则",
          "body": {
            "type": "form",
            "title": "提现规则",
            "initApi": "get:/b/info/read?type=2",
            "name": "提现规则",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 2
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "推广分享",
          "body": {
            "type": "form",
            "title": "推广分享",
            "initApi": "get:/b/info/read?type=3",
            "name": "推广分享",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 3
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "元心理介绍",
          "body": {
            "type": "form",
            "title": "元心理介绍",
            "initApi": "get:/b/info/read?type=4",
            "name": "元心理介绍",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 4
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "用户协议",
          "body": {
            "type": "form",
            "title": "用户协议",
            "initApi": "get:/b/info/read?type=5",
            "name": "用户协议",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 5
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "隐私政策",
          "body": {
            "type": "form",
            "title": "隐私政策",
            "initApi": "get:/b/info/read?type=6",
            "name": "隐私政策",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 6
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "咨询指南",
          "body": {
            "type": "form",
            "title": "咨询指南",
            "initApi": "get:/b/info/read?type=7",
            "name": "咨询指南",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 7
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "隐私政策概要",
          "body": {
            "type": "form",
            "title": "隐私政策概要",
            "initApi": "get:/b/info/read?type=8",
            "name": "隐私政策概要",
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "type",
                "value": 8
              },
              {
                "type": "hidden",
                "name": "content_type",
                "value": 1
              },
              {
                "type": "rich-text",
                "name": "content",
                "receiver": "post:/b/site/upload?type=image",
                "options": {
                  "height": 500,
                  "menubar": false,
                  "branding": false,
                  "convert_urls": false,
                  "toolbar_mode": 'wrap',
                  "plugins": [
                    "advlist autolink lists link image charmap print preview anchor",
                    "searchreplace visualblocks code fullscreen",
                    "insertdatetime media table paste code help wordcount"
                  ],
                  "toolbar": 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter',
                },
                "required": true
              }
            ]
          },
        },
        {
          "title": "客服热线",
          "body": {
            "type": "form",
            // "debug": true,
            "title": "客服热线",
            "initApi": "get:/b/info/read?type=9",
            "name": "客服热线",
            "mode": "horizontal",
            "horizontal": {
              "left": 3,
              "right": 9,
              "offset": 2
            },
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "content_type",
                "value": 2
              },
              {
                "type": "hidden",
                "name": "type",
                "value": 9
              },
              {
                "type": "text",
                "size": "lg",
                "name": "content['custom_mobile']",
                "label": "客服热线",
                "required": true
              },
            ]
          }
        },
        {
          "title": "专家分润率",
          "body": {
            "type": "form",
            // "debug": true,
            "title": "专家分润率",
            "initApi": "get:/b/info/read?type=10",
            "name": "专家分润率",
            "mode": "horizontal",
            "horizontal": {
              "left": 3,
              "right": 9,
              "offset": 2
            },
            "api": "post:/b/info/save",
            "controls": [
              {
                "type": "hidden",
                "name": "content_type",
                "value": 2
              },
              {
                "type": "hidden",
                "name": "type",
                "value": 10
              },
              {
                "type": "input-number",
                "size": "lg",
                "name": "content['common_multi']",
                "validateOnChange": true,
                "validations": {
                  "isInt": true,
                  "minimum": 0,
                  "maximum": 100,
                },
                "label": "常规订单-量表解读",
                "required": true
              },
              {
                "type": "input-number",
                "size": "lg",
                "name": "content['common_consult']",
                "validateOnChange": true,
                "validations": {
                  "isInt": true,
                  "minimum": 0,
                  "maximum": 100,
                },
                "label": "常规订单-心理咨询",
                "required": true
              },
              {
                "type": "input-number",
                "size": "lg",
                "name": "content['company_consult']",
                "validateOnChange": true,
                "validations": {
                  "isInt": true,
                  "minimum": 0,
                  "maximum": 100,
                },
                "label": "企业订单-心理咨询",
                "required": true
              },
            ]
          }
        },
      ]
    }
  };
})();